/* Estilo general del cuerpo */
body {
    font-family: "Century Gothic", "Gill Sans", Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 100vh; /* Permite que el body ocupe toda la altura */
}

/* Contenedor principal de noticias */
.noticias-container {
    max-height: 500px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Tres columnas adaptables */
    gap: 20px; /* Espacio entre tarjetas */
    padding: 20px;
    background-color: #f4f4f4;
}

/* Estilo para cada tarjeta */
.noticia-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
    transform: scale(1.05); /* Efecto de agrandamiento */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Imagen dentro de las tarjetas */
.noticia-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Títulos de las noticias */
.noticia-card h3 {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
}

/* Descripción breve */
.noticia-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* Botón de "Ver más" */
.btn-ver-mas {
    background-color: #B51032;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-ver-mas:hover {
    background-color: #7d0f23;
}

.inicio_sesion {
    font-family: "Century Gothic", "Gill Sans", Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin-top: 250px;
    height: 100%;
    text-align: center;
}


.registar {
    font-family: "Century Gothic", "Gill Sans", Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin-top: 100px;
    height: 100%;
    text-align: center;
}
/* Eliminar el contenedor del contenido */
/* #contenido { */
/*     width: 90%; */
/*     background: #fff; */
/*     padding: 2em; */
/*     margin: auto; */
/*     border-radius: 8px; */
/*     border: 2px solid #B51032; */
/*     box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); */
/*     overflow: hidden; */
/*     box-sizing: border-box; */
/* } */

/* Título principal */
h1 {
    color: #000;
    margin-bottom: 1em;
}

#imagen_fnb img{
    width: 360px;
    height: 200px;
}

#imagen_principal img {
    width: 100%;
}

/* Cabecera */
#cabecera {
    background-color: #f4f4f4;
    padding: 1em 0;
    margin-bottom: 20px;
}

#cabecera h1 {
    text-align: center;
    color: #fff;
    font-family: "Georgia", Arial, sans-serif;
}

/* Menú de navegación */
nav {
    background-color: #B51032;
    display: flex;
    justify-content: center;
    padding: 0.5em 0;
    height: 40px; 
    position: sticky;
    top: 0; 
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; 
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em 1em;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a:hover {
    background-color: #333;
}

/* Principal */
#principal {
    min-height: 400px;
    flex-grow: 1;
}

/* Formularios */
form {
    margin-bottom: 2em;
}

label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5em;
    text-align: center;
}

input, select, button {
    width: 50%;
    padding: 0.8em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 1em;
}

button {
    background: #B51032;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #7d0f23;
}

/* Elementos del formulario */
#form {
    background: #fff;
    padding: 2em;
    border: 1px solid #B51032;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin: 0 auto;
    margin-bottom: 5%;
}

/* Párrafos */
p {
    text-align: left;
    color: #B51032;
    margin-left: 5px;
    font-size: 1.5em;
}

/* Tablas */
table {
    width: 90%;
    margin: 40px auto; /* Centrado y un margen arriba para no pegarse a la parte superior */
    border-collapse: collapse;
}

td, th {
    border: 1px solid #B51032;
    padding: 0.5em;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #f4f4f4;
}

th {
    background-color: #B51032;
    color: white;
    padding: 10px;
}

.tabla_clubes {
    margin-bottom: 50px;
}

.registro_pabellones {
    font-family: "Century Gothic", "Gill Sans", Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin-top: 150px;
    height: 100%;
    text-align: center;
}

.calendario-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f4f4f4;
}

/* Estilo de cada partido */
.partido-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

/* Fecha y hora */
.fecha-hora {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.pabellon {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

/* Equipos */
.equipos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.equipo-local, .equipo-visitante {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.versus {
    
    font-size: 18px;
    font-weight: bold;
    color: #555;
}

/* Botón de estado */
.estado-partido {
    margin-top: 15px;
}

.btn-prepartido {
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-prepartido:hover {
    background-color: #d32f2f;
}
/* Contenedor principal */
.calendario-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
}

.partido-card {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.5fr;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partido-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.partido-fecha-hora {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fecha-hora {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    text-align: left;
    width: 100%;
}

.pabellon {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

.equipos {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Dos columnas flexibles y una fija para el guion */
    align-items: center;
    text-align: center;
    width: 100%;
}

.equipo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.equipo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.equipo-local {
    text-align: left; /* Alinea los nombres de los equipos locales a la derecha */
    font-weight: bold;
}

.equipo-visitante {
    text-align: right; /* Alinea los nombres de los equipos visitantes a la izquierda */
    font-weight: bold;
}

.equipo span {
    font-size: 16px;
    font-weight: bold;
}

.versus {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.estado-partido {
    text-align: center;
}

.btn-prepartido {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #d9534f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 100%;
}

.btn-prepartido:hover {
    background: #c9302c;
}

#tabla_contacto {
    width: 75%;
    border-collapse: collapse;
    text-align: center;
}

.contenedor-cierre-sesion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.contenedor-cierre-sesion h2 {
    color: #B51032;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.contenedor-cierre-sesion button {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #B51032;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    max-width: 400px; /* Ancho máximo */
}


.contenedor-cierre-sesion button:hover {
    background-color: #7d0f23;
}

/* Estilo para el mensaje que sugiere añadir un pabellón */
.mensaje-aviso {
    width: 55%;
    font-family: 'Arial', sans-serif;
    font-size: 0.8em;
    color: #d9534f; /* Color rojo suave */
    background-color: #f9eaea; /* Fondo tenue para destacar sin ser agresivo */
    border: 1px solid #d9534f;
    padding: 10px;
    border-radius: 5px;
    margin: 0 auto;
    margin-bottom: 15px;
}

.mensaje-aviso p{
    text-align: center;
}

/* Estilo para el enlace dentro del mensaje */
.mensaje-aviso a {
    color: #c9302c; /* Color rojo más oscuro para el enlace */
    text-decoration: none;
    font-weight: bold;
}

.mensaje-aviso a:hover {
    text-decoration: underline;
}

.club-imagen {
    max-width: 50%;    /* La imagen no se excederá del 100% del ancho de la celda */
    max-height: 50%;   /* La imagen no será más alta que la celda */
    height: auto;       /* Mantiene la relación de aspecto */
    width: auto;        /* Mantiene la relación de aspecto */
    object-fit: cover; /* Ajustar la imagen para cubrir el contenedor sin deformarse */
}

.resultados-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    min-height: 100vh;
    margin-right: 10%;
}

.resultado {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: linear-gradient(to right, #ffebee, #ffcdd2);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
    border-left: 6px solid #d32f2f;
}

.fecha-hora {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 1em;
    margin-top: 10px;
    margin-left: 10px;
}

.equipos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1.3em;
    font-weight: bold;
}

.equipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 10px;
}

.puntos {
    font-weight: bold;
    font-size: 2em;
    color: #333;
    margin-top: 5px;
}

.pabellon {
    font-style: italic;
    color: #777;
    font-size: 0.9em;
    margin-top: 10px;
    margin-left: 10px;
}

.iconos {
    position: absolute;
    top: 10px;
    right: 15px;
    display: flex;
    gap: 10px;
}


/* Pie de página */
#pie {
    margin-top: 2em;
    color: #B51032;
    border-top: 2px solid #B51032;
    padding-top: 1em;
    font-size: 0.9em;
    text-align: center;
}

.copyright {
    text-align: center;
}

/* Resaltado de errores */
.error {
    padding-left: 5px;
    color: crimson;
    font-size: small;
}

/* Resultados */
.resultado {
    margin-top: 5em;
    padding: 1px;
    color: darkslateblue;
    margin-left: 10em;
}
